/*
* Copyright 2017 Yonyou Auto Information Technology（Shanghai） Co., Ltd. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-service-JDInterface
*
* @File name : JDInterfaceConstant.java
*
* @Author : Administrator
*
* @Date : 2017年4月10日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2017年4月10日    Administrator    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/
	
package com.yonyou.gmmc.service.JDInterface.constant;


/**
*
* @author Administrator
* TODO description
* @date 2017年4月10日
*/

public class JDInterfaceConstant {

    public static final String SERVICE_NAME = "JDInterface";
    public static final String SERVICE_NAME_ZH = "京东接口";
    public static final String VERSION = "v1";
    public static final String BASE_PATH = "/" + SERVICE_NAME + "/api";
    
    
    public static final String BASE_PACKAGE="com.yonyou.gmmc.service.JDInterface";
    public static final String UTIL_PACKAGE=BASE_PACKAGE+".util";
    public static final String DAO_PACKAGE=BASE_PACKAGE+".dao";
    public static final String MODEL_PACKAGE=BASE_PACKAGE+".model";
    
    public static final String RESULTCODE_0000  ="0000";   //操作成功	
    public static final String RESULTCODE_0001  ="0001";   //下单成功	
    public static final String RESULTCODE_0002  ="0002";   //取消订单成功	
    public static final String RESULTCODE_0003  ="0003";   //确认订单成功	
    public static final String RESULTCODE_0004  ="0004";   //申请开票成功	
    public static final String RESULTCODE_0005  ="0005";   //全部开票成功	
    public static final String RESULTCODE_0006  ="0006";   //部分开票成功	
    public static final String RESULTCODE_0007  ="0007";   //取消开票成功	
    public static final String RESULTCODE_0008  ="0008";   //重复提交	
    public static final String RESULTCODE_0010  ="0010";   //返回数据为空	
    /**1*** 参数问题  ="1*** 参数问题 "*/
    public static final String RESULTCODE_1001  ="1001";   //参数为空	
    public static final String RESULTCODE_1002  ="1002";   //参数格式不正确	
    public static final String RESULTCODE_1003  ="1003";   //参数值不正确	
    public static final String RESULTCODE_1004  ="1004";   //参数重复	
    public static final String RESULTCODE_1005  ="1005";   //入参转化错误	
    /**2*** 权限问题  ="2*** 权限问题 "*/	
    public static final String RESULTCODE_2001  ="2001";   //用户权限不足	
    public static final String RESULTCODE_2002  ="2002";   //合同权限不足	
    public static final String RESULTCODE_2003  ="2003";   //企业权限不足	
    public static final String RESULTCODE_2004  ="2004";   //商品池权限不足	
    public static final String RESULTCODE_2005  ="2005";   //金彩权限问题	
    public static final String RESULTCODE_2006  ="2006";   //无有效增票资质	
    public static final String RESULTCODE_2007  ="2007";   //token已过期	
    /**3*** 业务问题  ="3*** 业务问题*/
    /**31** 下单业务问题  ="31** 下单业务问题	*/
    public static final String RESULTCODE_3001  ="3001";   //价格不存在	
    public static final String RESULTCODE_3002  ="3002";   //提交订单过快	
    public static final String RESULTCODE_3003  ="3003";   //订单类型不支持	
    public static final String RESULTCODE_3004  ="3004";   //商品类型受限制	
    public static final String RESULTCODE_3005  ="3005";   //商品没查询到	
    public static final String RESULTCODE_3006  ="3006";   //商品不能进行货到付款下单	
    public static final String RESULTCODE_3007  ="3007";   //地址不能进行货到付款下单	
    public static final String RESULTCODE_3008  ="3008";   //库存不足	
    public static final String RESULTCODE_3009  ="3009";   //区域限制校验没通过	
    public static final String RESULTCODE_3010  ="3010";   //实体礼品卡和其他实物不能混合下单	
    public static final String RESULTCODE_3011  ="3011";   //大家电暂不支持公司转账 预占下单	
    public static final String RESULTCODE_3012  ="3012";   //海尔仓大家电，不支持后款预占下单	
    public static final String RESULTCODE_3013  ="3013";   //厂家直送商品只能下先款订单	
    public static final String RESULTCODE_3014  ="3014";   //厂家直送商品不能使用普票随货下单	
    public static final String RESULTCODE_3015  ="3015";   //实物礼品卡订单只能下普票订单	
    public static final String RESULTCODE_3016  ="3016";   //配额不足或者已被锁定	
    public static final String RESULTCODE_3017  ="3017";   //余额不足	
    public static final String RESULTCODE_3018  ="3018";   //客户端价格快照中sku价格不存在	
    public static final String RESULTCODE_3019  ="3019";   //客户端价格快照中sku价格与京东价格不一致	
    /**3051开始的为下游接口异常  ="3051开始的为下游接口异常	*/
    public static final String RESULTCODE_3051  ="3051";   //价格获取失败	
    public static final String RESULTCODE_3052  ="3052";   //主数据接口业务异常	
    public static final String RESULTCODE_3053  ="3053";   //商品基本信息接口调用失败	
    public static final String RESULTCODE_3054  ="3054";   //商品扩展接口调用失败	
    public static final String RESULTCODE_3055  ="3055";   //大家电接口调用失败	
    public static final String RESULTCODE_3056  ="3056";   //赠品附件接口调用失败	
    public static final String RESULTCODE_3057  ="3057";   //区分大家电和中小件商品失败	
    public static final String RESULTCODE_3058  ="3058";   //下单失败，请重新提交订单	
    /**31** 确认订单业务问题  ="31** 确认订单业务问题	*/
    public static final String RESULTCODE_3101  ="3101";   //确认下单最终失败，请重新确认订单	
    public static final String RESULTCODE_3102  ="3102";   //jdOrderId不存在	
    public static final String RESULTCODE_3103  ="3103";   //该订单已确认下单	
    public static final String RESULTCODE_3104  ="3104";   //不能单独确认子订单	
    public static final String RESULTCODE_3105  ="3105";   //订单对应子单已取消，不能确认！	
    public static final String RESULTCODE_3106  ="3106";   //查询子单异常	
    public static final String RESULTCODE_3107  ="3107";   //本地子单与ERP子单不一致	
    public static final String RESULTCODE_3108  ="3108";   //确认订单操作失败	
    /**32** 取消订单业务问题  ="32** 取消订单业务问题	*/
    public static final String RESULTCODE_3201  ="3201";   //取消订单失败，请重新取消订单	
    public static final String RESULTCODE_3202  ="3202";   //jdOrderId不存在	
    public static final String RESULTCODE_3203  ="3203";   //该订单已经被取消	
    public static final String RESULTCODE_3204  ="3204";   //不能取消已经生产订单	
    public static final String RESULTCODE_3205  ="3205";   //不能取消未确认订单	
    public static final String RESULTCODE_3206  ="3206";   //不能取消预占并且已确认订单	
    public static final String RESULTCODE_3207  ="3207";   //不能取消父订单	
    public static final String RESULTCODE_3208  ="3208";   //不能取消已确认订单	
    public static final String RESULTCODE_3209  ="3209";   //不能取消子订单	
    public static final String RESULTCODE_3210  ="3210";   //查询子单异常	
    public static final String RESULTCODE_3211  ="3211";   //取消订单失败，存在已确认的子单	
    public static final String RESULTCODE_3212  ="3212";   //取消订单操作失败	
    /**33** 发票业务问题  ="33** 发票业务问题*/	
    public static final String RESULTCODE_3301  ="3301";   //待审核	
    public static final String RESULTCODE_3302  ="3302";   //驳回	
    public static final String RESULTCODE_3303  ="3303";   //通过待开票	
    public static final String RESULTCODE_3304  ="3304";   //申请单不存在	
    /**34** 其余接口问题  ="34** 其余接口问题	*/
    public static final String RESULTCODE_3401  ="3401";   //订单不存在	
    public static final String RESULTCODE_3402  ="3402";   //订单配送信息不存在	
    public static final String RESULTCODE_3403  ="3403";   //支付时余额不足	
    public static final String RESULTCODE_3404  ="3404";   //订单不能发起支付	
    public static final String RESULTCODE_3405  ="3405";   //没查询到对应地址	
    public static final String RESULTCODE_3406  ="3406";   //价格不存在	
    public static final String RESULTCODE_3407  ="3407";   //获取余额业务异常	
    public static final String RESULTCODE_3408  ="3408";   //该支付类型不支持余额查询	
    public static final String RESULTCODE_3409  ="3409";   //区分大家电和中小件商品失败	
    public static final String RESULTCODE_3410  ="3410";   //订单未被挂起	
    /**35** 买断模式  ="35** 买断模式	*/
    public static final String RESULTCODE_3500  ="3500";   //未找到相对应的RDC仓	
    public static final String RESULTCODE_3550  ="3550";   //买断模式扩展节点信息为空	
    public static final String RESULTCODE_3551  ="3551";   //买断模式商品金额格式有误	
    public static final String RESULTCODE_3552  ="3552";   //买断模式商品金额总和与订单金额不一致	
    public static final String RESULTCODE_3553  ="3553";   //买断模式扩展节点商品SkuId与下单SkuId不一致	
    public static final String RESULTCODE_3554  ="3554";   //地址非法-非京东地址!	
    /**5*** 系统异常*/	
    public static final String RESULTCODE_5001  ="5001";   //服务异常，请稍后重试	
    public static final String RESULTCODE_5002  ="5002";   //未知错误	
    
    /**
     * 商城自己的上下架状态
     */
	public static final Integer WX_STATUS_UP = 30031001;
	public static final Integer WX_STATUS_DOWN = 30031002;
	/**
     * 京东的上下架状态
     */
	public static final Integer JD_STATUS_UP = 30021001;
	public static final Integer JD_STATUS_DOWN = 30021002;
	/**
     * 系统userId
     */
	public static final Integer WX_USER_ID = 999999;
	/**
     * 规格删除状态
     */
	public static final Integer CATEGOY_TYPE_TRUE = 30071001;
	public static final Integer CATEGOY_TYPE_FALSE = 30071002;
	/**
     * 规格分类
     */
	public static final Integer CATEGOY_CLASS_1001 = 30061001;
	public static final Integer CATEGOY_CLASS_1002 = 30061002;
	public static final Integer CATEGOY_CLASS_1003 = 30061003;
	
	/**
     * 商品池获取状态
     */
	public static final Integer PRODUCT_POOL_1001 = 30011001;
	public static final Integer PRODUCT_POOL_1002 = 30011002;
	
	/**
     * 商品可售状态
     */
	public static final Integer PRODUCT_SALESTATE_1001 = 30091001;
	public static final Integer PRODUCT_SALESTATE_1002 = 30091002;
	/**
     * 商品可开发票状态
     */
	public static final Integer PRODUCT_ISCANVAT_1001 = 30101001;
	public static final Integer PRODUCT_ISCANVAT_1002 = 30101002;
	/**
     * 商品是否支持7天退换
     */
	public static final Integer PRODUCT_IS7TORETURN_1001 = 30111001;
	public static final Integer PRODUCT_IS7TORETURN_1002 = 30111002;
	
    /**
     * 订单状态
     */
    public static final String ORDER_STATUS_START = "30051001";            //处理中
    public static final String ORDER_STATUS_POINTS_DEDUCTED = "30051002";  //积分已扣
    public static final String ORDER_STATUS_SUCCESS = "30051003";          //下单成功
    public static final String ORDER_STATUS_FIALED = "30051004";           //下单失败
    public static final String WAITING_FOR_DELIVERY = "30051005";          //待发货
    public static final String ORDER_DELIVER_GOODS = "30051006";           //发货中
    public static final String SEND_EXPRESS_SUCCESS = "30051007";          //妥投
    public static final String SEND_EXPRESS_FIALED = "30051008";           //拒收
    public static final String CANCELLATION_OF_ORDER = "30051009";         //已取消
}
